{% extends 'base.html' %}
{% block content %}

    <h1>hello，Django！</h1>



    <div class="container">
        <div class="row">
            {% for x in api %}
                <div class="col-sm">
                    <div class="card" style="width: 18rem;">
                        <img src="{{ x.avatar_url }}" class="card-img-top" alt="...">
                        <div class="card-body">
                            <h5 class="card-title">{{ x.login }}</h5>
                            <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
                            <a href="{{ x.html_url }}" class="btn btn-primary">访问</a>
                        </div>
                    </div>
                </div>
            {% endfor %}
        </div>
    </div>
    <p>{{ api }}</p>
{% endblock %}